package com.bdqn.text;

import java.lang.reflect.Type;

public class Bus extends MotoVehicle {
    private int SeatCount;//座位数

    public Bus(){}
    public int getSeatCount() {
        return SeatCount;
    }

    public void setSeatCount(int seatCount) {
        SeatCount = seatCount;
    }

    public Bus(int seatCount) {
        SeatCount = seatCount;
    }

    public Bus(String no, String brand, int seatCount){
        super(no, brand);
        this.SeatCount=getSeatCount();
    }

    @Override
    public int calRent(int days) {
        if(SeatCount<=16){
            return days*800;
        }else{
            return days*1500;
        }
    }

}
